GetTableRowPr
Returns a set of the table row properties which will be applied to all the rows within a table which match the conditional formatting type.
Syntax
expression.GetTableRowPr();
expression
- A variable that represents a ApiTableStylePr class.
Parameters
This method doesn't have any parameters.
Returns
Example
This example shows how to get a set of the table row properties which will be applied to all the rows within a table which match the conditional formatting type.
let doc = Api.GetDocument();
let paragraph = doc.GetElement(0);
paragraph.AddText("We create a 3x3 table and set the height of half an inch to all the rows:");
let tableStyle = doc.CreateStyle("CustomTableStyle", "table");
tableStyle.SetBasedOn(doc.GetStyle("Bordered"));
let table = Api.CreateTable(3, 3);
table.SetWidth("percent", 100);
let tableStylePr = tableStyle.GetConditionalTableStyle("wholeTable");
table.SetTableLook(true, true, true, true, true, true);
tableStylePr.GetTableRowPr().SetHeight("atLeast", 720);
table.SetStyle(tableStyle);
doc.Push(table);